<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
	<title>我的回收中心</title>
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<link rel="stylesheet" href="__TMPL__Public/css/frame.css">
	<style>
		.express{ cursor: pointer; color: #fff; background:#f48f0a; line-height: 30px; display: inline-block; padding: 0 10px; border-radius: 3px;}
		.opt{ display: none;}
	</style>
</head>
<body>
<div class="wrap">
<div class="title">我的回收中心 <a href="/user/rcenter/logout" >退出</a></div>

<php>
	$status=array("-1"=>"<span class=\"t-c-g\">提交订单</span>","0"=>"<span class=\"t-c-g\">进行中</span>","1"=>"已回收");	
	$way=array("0"=>"上门回收","1"=>"邮寄回收");
</php>
	<div class="main"><volist name="lists" id="vo">
		<ul class="myorder" data-id="{$vo.id}">    	
	    	<li><em>订单号：</em><strong>{$vo.id}</strong></li>
	    	<li><em>手机号：</em>{$vo.mobile}</li>
	        <li><em>下单时间：</em>{$vo.ctime}</li>
	        <li><em>回收型号：</em>{$vo.pname}</li>
	        <li><em>回收估价：</em><span class="t-c-r">￥{$vo.price}</span></li>
	        <li><em>回收方式：</em>{$way[$vo['way']]} <if condition="$vo['status'] eq -1 "> - <span class="express">填写运单号</span></li>
	        <li class="opt">
	        	<form class="express_form" action="/user/rcenter/express" method="post">
	        		<input type="hidden" name="orderid" value="{$vo.id}" />
	        	<strong>运单信息：</strong>
	        	<div class="line">	        	
	        		<select class="way" type="text" name="way">
	        			<option value="申通快递">申通快递</option>
	        			<option value="顺丰快递">顺丰快递</option>
	        			<option value="圆通快递">圆通快递</option>
	        			<option value="韵达快递">韵达快递</option>
	        			<option value="ems快递">ems快递</option>
	        			<option value="中通快递">中通快递</option>
	        			<option value="宅急送">宅急送</option>
	        		</select>
	        	</div>
	        	<div class="line">
	        		<input class="expresscode" type="text" placeholder="运单号" name="expresscode" />
	        	</div>
	        	<div class="line">
	        	<input type="submit" value="提交"/>
	        	</div>
</form></if></li>
	        <li><em>订单状态：</em>{$status[$vo['status']]}</li>
	        <li><em>商家反馈：</em>
				<if condition="!empty($vo['merchant_feedback'])"> 
					{$vo.merchant_feedback}
				<else />
					暂无反馈
				</if>
			</li>
		</ul></volist>
	</div>
</div>
<tc_include file="Public:scripts"/>
<script src="__TMPL__Public/js/frame.js"></script>
</body>
</html>